package com.inspur.dgov.bsp.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.inspur.dgov.common.tool.node.TreeNode;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 树结构Mapper接口
 *
 * @Author chiyupei
 * @Date 19 下午8:15
 * @Version 1.0
 * @Description 树结构Mapper接口
 */
public interface TreeMapper extends BaseMapper<TreeNode> {

    /**
     * 字典类别树
     *
     * @return
     */
    List<TreeNode> configTree(@Param("query") Map<String, Object> config);

    /**
     * 字典树
     *
     * @return
     */
    List<TreeNode> dictTree(@Param("query") Map<String, Object> param);
}
